<div class="registers form">
<?php echo $this->ExtendedForm->create('Register', array('novalidate' => 'novalidate'));?>
	<h3><?php echo __d('admin', 'Edit Register'); ?></h3>
	<?php
		if(isset($this->request->params['named']['id'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('id', array_merge(array('label' => __d('admin', 'Id'))));
		if(isset($this->request->params['named']['id'])) echo '</div>';

		if(isset($this->request->params['named']['fullname'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('fullname', array_merge(array('label' => __d('admin', 'Fullname'))));
		if(isset($this->request->params['named']['fullname'])) echo '</div>';

		if(isset($this->request->params['named']['email'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('email', array_merge(array('label' => __d('admin', 'Email'))));
		if(isset($this->request->params['named']['email'])) echo '</div>';

		if(isset($this->request->params['named']['phone'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('phone', array_merge(array('label' => __d('admin', 'Phone'))));
		if(isset($this->request->params['named']['phone'])) echo '</div>';

		if(isset($this->request->params['named']['birthday'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('birthday', array_merge(array('label' => __d('admin', 'Birthday'))));
		if(isset($this->request->params['named']['birthday'])) echo '</div>';

		if(isset($this->request->params['named']['code'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('code', array_merge(array('label' => __d('admin', 'Code'))));
		if(isset($this->request->params['named']['code'])) echo '</div>';

	?>
<?php echo $this->ExtendedForm->end(array('label' => __d('admin', 'Save Register'), 'class' => 'btn btn-primary', 'div' => false, 'before' => '<div class="control-group"><div class="controls">', 'after' => "\n" . $this->Html->link(__d('admin', 'Cancel'), $redirectUrl, array('class' => 'btn btn-default')) . '</div></div>'));?>
</div>